package utils;

/**
 * Class represents an objects that functions as a on/off switch for board buttons
 */
public class ActivateButton {

	// member
	boolean isSystemActive;
	
	// public methods
	
	/**
	 * Constructor- initializes system's buttons as active
	 */
	public ActivateButton() {
		isSystemActive = true;
	}
	
	/**
	 * Checks if system is activated at the moment
	 * @return True if buttons are activated and perform their action, False if not
	 */
	public boolean isActivated() { return isSystemActive; }
	
	/**
	 * Sets system's buttons as activated
	 */
	public void activateSystem() { isSystemActive = true; }
	
	/**
	 * Disables system's buttons
	 */
	public void disableSystem() { isSystemActive = false; }
}